﻿<Application
    x:Class="WinKee.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.ThemeDictionaries>
                <ResourceDictionary x:Key="Default">
                    <ImageBrush x:Key="HubBackgroundImageBrush" ImageSource="Assets/HubBackground.png"/>
                </ResourceDictionary>
                <ResourceDictionary x:Key="HighContrast">
                    <ImageBrush x:Key="HubBackgroundImageBrush" ImageSource="{x:Null}"/>
                </ResourceDictionary>
            </ResourceDictionary.ThemeDictionaries>

            <DataTemplate x:Key="SimpleEntryTemplate">
                <TextBlock Margin="0,2" Text="{Binding Title}" TextTrimming="CharacterEllipsis" Style="{StaticResource ListViewItemContentTextBlockStyle}" FontSize="26"/>
            </DataTemplate>

            <DataTemplate x:Key="SimpleEntryTemplateWithColor">
                <TextBlock Margin="0,2" Text="{Binding Title}" TextTrimming="CharacterEllipsis" Style="{StaticResource ListViewItemContentTextBlockStyle}" Foreground="{Binding ForegroundColor}" FontSize="26"/>
            </DataTemplate>

            <DataTemplate x:Key="EntryTemplateWithUsername">
                <StackPanel Orientation="Vertical" Margin="0,2,0,4">
                    <TextBlock Text="{Binding Title}" TextTrimming="CharacterEllipsis" Style="{StaticResource ListViewItemContentTextBlockStyle}" FontSize="26"/>
                    <TextBlock Margin="0" Text="{Binding UserName}" TextTrimming="CharacterEllipsis" Foreground="{StaticResource PhoneDisabledBrush}" Style="{StaticResource ListViewItemContentTextBlockStyle}" FontSize="18"/>
                </StackPanel>
            </DataTemplate>

            <DataTemplate x:Key="EntryTemplateWithUsernameAndColor">
                <StackPanel Orientation="Vertical" Margin="0,2,0,4">
                    <TextBlock Text="{Binding Title}" TextTrimming="CharacterEllipsis" Style="{StaticResource ListViewItemContentTextBlockStyle}" Foreground="{Binding ForegroundColor}" FontSize="26"/>
                    <TextBlock Margin="0" Text="{Binding UserName}" TextTrimming="CharacterEllipsis" Foreground="{StaticResource PhoneDisabledBrush}" Style="{StaticResource ListViewItemContentTextBlockStyle}" FontSize="18"/>
                </StackPanel>
            </DataTemplate>

            <DataTemplate x:Key="FolderTemplate">
                <StackPanel Orientation="Vertical">
                    <TextBlock Style="{StaticResource ListViewItemContentTextBlockStyle}" FontSize="32" FontWeight="Bold" Foreground="{StaticResource PhoneAccentBrush}" Text="{Binding GroupName}"/>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Margin="0,0,5,0" Style="{StaticResource ListViewItemContentTextBlockStyle}" FontSize="20" Foreground="{StaticResource PhoneDisabledBrush}" Text="Entries: "/>
                        <TextBlock Style="{StaticResource ListViewItemContentTextBlockStyle}" FontSize="20" Foreground="{StaticResource PhoneDisabledBrush}" Text="{Binding EntryCount}"/>
                    </StackPanel>
                </StackPanel>
            </DataTemplate>

        </ResourceDictionary>
        
    </Application.Resources>
</Application>
